"""
__author__ = 'berlinyoung'
@File   :main_page.py
@Date   :2022/5/18 20:48
-*- coding: utf-8 -*-
"""
import time

from appium.webdriver.common.mobileby import MobileBy

from weixin_mobile.step1_po.page.base import Base
from weixin_mobile.step1_po.page.contact_page import ContactPage


class MainPage(Base):

    ele_contact = (MobileBy.XPATH, "//*[@text='通讯录']")
    # 进入通讯录菜单
    def goto_contact(self):
        self.webdriver_wait(self.ele_contact)
        self.find_click(MobileBy.XPATH, "//*[@text='通讯录']")
        return ContactPage(self.driver)

    #进入消息菜单
    def goto_message_menu(self):
        pass

    # 进入邮件菜单
    def goto_email_menu(self):
        pass

    # 进入工作台菜单
    def goto_task_table(self):
        pass

    # 进入我的菜单
    def goto_myself(self):
        pass